package com.ezops.dtcc.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.ezops.dtcc.model.AckNack;
import com.ezops.dtcc.model.DtccException;
import com.ezops.dtcc.model.DtccRules;

public class DtccExceptionRowMapper implements RowMapper<Object> {
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		
		DtccException  dtccException = new DtccException();
		dtccException.setDtccRecId(rs.getInt("DTCC_REC_ID"));
		dtccException.setExceptionDate(rs.getDate("EXECUTION_DT"));
		dtccException.setRuleId(rs.getInt("RULE_ID"));
		dtccException.setExceptionId(rs.getInt("EXCP_ID"));
	
		return dtccException;
	}
}
